package com.hub.esdemo.dto;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @ author 飞天蝙蝠
 * @ date & time 2024/12/28 13:41
 */
@Data
@Document(indexName = "users")
public class User {

    @Id
    private String id;

    private String name;

    private int age;

}
